package com.jkm.boss.service;

import com.google.common.base.Optional;
import com.jkm.base.common.entity.PageModel;
import com.jkm.boss.entity.ChannelSupportCreditBank;
import com.jkm.boss.helper.request.QuerySupportBankParams;

/**
 * Created by shitou on 17/4/14.
 */
public interface ChannelSupportCreditBankService {
    /**
     * 行用卡-支持银行列表
     *
     * @param querySupportBankParams
     * @return
     */
    PageModel<ChannelSupportCreditBank> querySupportBank(QuerySupportBankParams querySupportBankParams);

    /**
     * 按ID 查询
     *
     * @param id
     * @return
     */
    Optional<ChannelSupportCreditBank> getById(long id);

    /**
     * 更新状态
     *
     * @param id
     * @param status
     * @return
     */
    int updateStatus(long id, int status);
}
